.dialog-wrapper {
  max-width: 520px;
  background-color: #FFF;
  margin: 80px auto;
  border-radius: 8px;
  padding: 20px 24px;

  animation-duration: 400ms;

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
    margin-bottom: 8px;

    .title {
      font-weight: bold;
      font-size: 16px;
      line-height: 1.5;
      word-wrap: break-word;
    }

    .close {
      padding: 2px 6px;
      border-radius: 4px;
      cursor: pointer;
      transition-duration: 0.3s;
      &:hover {
        background-color: #efefef;
      }
    }
  }
  .content {
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
  }
  .footer {
    text-align: end;
    margin-top: 12px;
  }

  &.in {
    animation-name: dialog-show;
  }
  &.out {
    animation-name: dialog-hide;
  }
}

@keyframes dialog-show {
  0% {transform: scale(1); opacity: 0;}
  1% { transform: scale(0);}
  100% { transform: scale(1); opacity: 1; }
}
@keyframes dialog-hide {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}